import Taro, { request } from '@tarojs/taro';
import React, { Component } from 'react';
import { View, Text, Button, Image } from '@tarojs/components';
import './index.scss'

interface NextStepPros {
    nextstep: any;
}

export class NextStep extends Component<NextStepPros, any> {

    static defaultProps = {
        nextstep: '风险测评',
    }

    state = {}

    constructor(props: NextStepPros) {
        super(props);
    }

    componentWillMount() { }
    componentDidMount() { }
    componentWillReceiveProps(nextProps, nextContext) { }
    componentWillUnmount() { }
    componentDidShow() { }
    componentDidHide() { }
    componentDidCatchError() { }
    componentDidNotFound() { }

    onSubmit() {

    }

    render() {
        const { nextstep } = this.props;
        return (
            <View className='page'>
                <View className='view-center'>
                    <Image src={require('@/assets/icons/eligible_investors/risk-done.svg')} style=''></Image>
                    <Text>完成</Text>
                    <Button className='button' onClick={this.onSubmit.bind(this)}>下一步:{nextstep}</Button>
                </View>
            </View>
        );
    }
}
export default NextStep;